package com.joe.web.w1.configure;

import org.jasig.cas.client.session.SingleSignOutHttpSessionListener;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ListenerConfigure {

//    @Bean
//    public ServletListenerRegistrationBean<MyHttpSessionListener> sessionListenerBean() {
//
//        return new ServletListenerRegistrationBean<>(new MyHttpSessionListener());
//    }

    @Bean
    public ServletListenerRegistrationBean<SingleSignOutHttpSessionListener> ssoListenerBean() {

        return new ServletListenerRegistrationBean<>(new SingleSignOutHttpSessionListener());
    }
}
